﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExeclOJobList.aspx.cs"
    Inherits="IHISCETeim.Web.MachineSys.MacModel.ExeclOJobList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Panel ID="exportpanel" runat="server">
        <asp:Repeater ID="rpMenu" runat="server">
            <HeaderTemplate>
                <table class="table" width="100%" layouth="165">
                    <thead>
                        <tr>
                            <th>机型</th>
                            <th width="70px" orderfield="SerialNumber" class="asc" type="hidden" name="SerialNumber">
                                机号
                            </th>
                            <th width="70px" align="center" type="text" name="EngineNumber" size="10" fieldclass="required">
                                发动机号
                            </th>
                            <th width="80px" orderfield="DownlineDate" class="asc" type="text" name="DownlineDate"
                                size="10" fieldclass="date">
                                下线日期
                            </th>
                            <th width="60px" align="center" type="enum" name="GPSIsSetUp" enumurl="MacModel/OJobList.aspx?ajaxmethod=getyesnoenumhtml">
                                GPS安装
                            </th>
                            <th width="80px" align="left" orderfield="InStorageDate" class="asc" type="text"
                                name="InStorageDate" size="10" fieldclass="date">
                                入库日期
                            </th>
                            <th width="80px" type="text" name="GPSNumber" size="10" fieldclass="required">
                                GPS号码
                            </th>
                            <th width="80px" orderfield="OnlineDate" class="asc" type="text" name="OnlineDate"
                                size="10" fieldclass="date">
                                出库日期
                            </th>
                            <th width="60px" align="center" type="enum" name="GPSOutStorage" enumurl="MacModel/OJobList.aspx?ajaxmethod=getyesnoenumhtml">
                                GPS出库
                            </th>
                            <th width="60px" align="center" type="enum" name="MACStock" enumurl="MacModel/OJobList.aspx?ajaxmethod=getyesnoenumhtml">
                                整机库存
                            </th>
                            <th width="60px" align="center" type="enum" name="GPSStock" enumurl="MacModel/OJobList.aspx?ajaxmethod=getyesnoenumhtml">
                                GPS库存
                            </th>
                            <th width="60px" type="text" name="OutStockType" size="10" fieldclass="">
                                出库形式
                            </th>
                            <th width="70px" type="text" name="AgentName" size="10" fieldclass="">
                                经销商
                            </th>
                            <th type="hidden" name="Remark" size="10" fieldclass="required">
                                备注
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr target="sid_user" rel="<%# Eval("SerialNumber") %>" action="MacModel/OJobList.aspx?ajaxmethod=editjob&JobId=<%# Eval("JobId") %>">
                    <td><%# Eval("MachineType")%></td>
                    <td title="项目:<%# Eval("PNAME") %>">
                        <%# Eval("SerialNumber")%>
                    </td>
                    <td>
                        <%# Eval("EngineNumber")%>
                    </td>
                    <td>
                        <%# Eval("DownlineDate") is DBNull ? "" : Convert.ToDateTime(Eval("DownlineDate")).ToString("yyyy-MM-dd")%>
                    </td>
                    <td>
                        <%# Eval("GPSIsSetUp") is DBNull ? "" : Convert.ToBoolean(Eval("GPSIsSetUp")) ? "有" : "<b style='color:red;'>无</b>"%>
                    </td>
                    <td>
                        <%# Eval("InStorageDate") is DBNull ? "" : Convert.ToDateTime(Eval("InStorageDate")).ToString("yyyy-MM-dd")%>
                    </td>
                    <td>
                        <%# Eval("GPSNumber")%>
                    </td>
                    <td>
                        <%# Eval("OnlineDate") is DBNull ? "" : Convert.ToDateTime(Eval("OnlineDate")).ToString("yyyy-MM-dd")%>
                    </td>
                    <td>
                        <%# Eval("GPSOutStorage") is DBNull ? "" : Convert.ToBoolean(Eval("GPSOutStorage")) ? "是" : "<b style='color:red;'>否</b>"%>
                    </td>
                    <td>
                        <%# Eval("MACStock") is DBNull ? "" : Convert.ToBoolean(Eval("MACStock")) ? "是" : "<b style='color:red;'>否</b>"%>
                    </td>
                    <td>
                        <%# Eval("GPSStock") is DBNull ? "" : Convert.ToBoolean(Eval("GPSStock")) ? "是" : "<b style='color:red;'>否</b>"%>
                    </td>
                    <td>
                        <%# Eval("OutStockType")%>
                    </td>
                    <td>
                        <%# Eval("AgentName")%>
                    </td>
                    <td>
                        <%# Eval("Remark")%>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
               <tr>
                    <td></td>
                    <td widtd="70px">
                        &nbsp;
                    </td>
                    <td widtd="70px">
                        &nbsp;
                    </td>
                    <td widtd="80px">
                        <b>合计:</b>
                    </td>
                    <td widtd="60px" align="center">
                        <%=GetCountByFiled("GPSIsSetUp")%></b>台
                    </td>
                    <td widtd="80px">
                        &nbsp;
                    </td>
                    <td widtd="80px">
                        &nbsp;
                    </td>
                    <td widtd="80px">
                        &nbsp;
                    </td>
                    <td widtd="60px" align="center">
                        <%=GetCountByFiled("GPSOutStorage")%>台
                    </td>
                    <td widtd="60px" align="center">
                        <%=GetCountByFiled("MACStock")%>台
                    </td>
                    <td widtd="60px" align="center">
                        <%=GetCountByFiled("GPSStock")%>台
                    </td>
                    <td widtd="60px">
                        &nbsp;
                    </td>
                    <td widtd="70px">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                </tbody> </table>
            </FooterTemplate>
        </asp:Repeater>
    </asp:Panel>
    </form>
</body>
</html>
